home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / hypercar / xcmd / xrulesde.sit / Xrules™ Demo / card_17110.txt < prev    next >
Encoding:
Text File  |  1991-06-24  |  3.0 KB  |  107 lines

  1. -- card: 17110 from stack: in
  2. -- bmap block id: 17250
  3. -- flags: 4000
  4. -- background id: 7992
  5. -- name: XCMDs, XFCNs, and Globals
  6.  
  7.  
  8. -- part 1 (field)
  9. -- low flags: 01
  10. -- high flags: 0007
  11. -- rect: left=2 top=24 right=311 bottom=510
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 0 / 0
  14. -- text alignment: 0
  15. -- font id: 22
  16. -- text size: 10
  17. -- style flags: 0
  18. -- line height: 13
  19. -- part name: 
  20.  
  21.  
  22. -- part 3 (button)
  23. -- low flags: 00
  24. -- high flags: 0000
  25. -- rect: left=256 top=314 right=337 bottom=281
  26. -- title width / last selected line: 0
  27. -- icon id / first selected line: 1013 / 1013
  28. -- text alignment: 1
  29. -- font id: 0
  30. -- text size: 12
  31. -- style flags: 0
  32. -- line height: 16
  33. -- part name: Next
  34. ----- HyperTalk script -----
  35. on mouseUp
  36.   go to next card
  37. end mouseUp
  38.  
  39.  
  40.  
  41. -- part contents for card part 1
  42. ----- text -----
  43. The XCMDs, XFCNs and globals allow you to control the operation of Xrules from HyperTalk scripts. 
  44.  
  45.  
  46. The following XCMDs are included with Xrules:
  47.  
  48.  
  49.     CHAIN direction
  50.  
  51. The "chain" XCMD invokes the inference engine.  It is documented in the 
  52. "Building Your Application" section under "Invoking the Inference Engine".
  53.  
  54.     COMPXRULES field_spec {,field_spec}
  55.  
  56. The "compXrules" XCMD compiles the rule base. It is documented in the 
  57. "Development Stack" section under "Compiler Card".
  58.  
  59.     DELECOMP
  60.  
  61. This XCMD deletes the rule base compiler.  It is documented in the 
  62. "Development Stack" section under "Compiler Card".
  63.  
  64.     INITXRULES [goal]
  65.  
  66. The "initXrules" XCMD initializes the system.  It is documented in the 
  67. "Building Your Application" section under "Initializing the System".
  68.  
  69.     PUSHONSTACK type, id, [use]
  70.  
  71. The "pushOnStack" XCMD pushes an item on the stack.  It is documented in the 
  72. "Building Your Application" section under "Miscellaneous XCMDs and XFCNs".
  73.  
  74.     PUTINTOFACT value, fact_id
  75.  
  76. The "putIntoFact" XCMD assigns a value to a fact.  It is documented in the 
  77. "Building Your Application" section under "Asserting Facts".
  78.  
  79.     SCROLLTOBOTTOM field
  80.  
  81. The "scrollToBottom" XCMD scrolls to the bottom of a field.  It is documented in the "Development Stack" section under "Monitor Card".
  82.  
  83.  
  84. The following XFCNs are included with Xrules:
  85.  
  86.     FACT(fact_id)
  87.  
  88. The "fact" XFCN returns the value of a fact.  It is documented in the 
  89. "Building Your Application" section under "Miscellaneous XCMDs and XFCNs".
  90.  
  91.     FINDSTR(starting_position, string_to_find, container_to_search)
  92.  
  93. The "findStr" XFCN locates a string and returns its position.  It is documented in the "Development Stack" section under "Compiler Card".
  94.  
  95.     POPFROMSTACK ()
  96.  
  97. The "popFromStack" XFCN pops the top item from the stack and returns information about that item.  It is documented in the "Building Your Application" section under "Miscellaneous XCMDs and XFCNs".
  98.  
  99. The following HyperTalk globals are used by Xrules.  You should not use these or any global beginning with "ilsi_" in your applications except as indicated in this document.  The use of the following globals is documented in the 
  100. "Development Stack" section under "Monitor Card".
  101.  
  102.     ilsi_trace
  103.     ilsi_facts
  104.     ilsi_stack
  105.     ilsi_step
  106.  
  107.